package com.ruoyi.shop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 类别管理对象 category
 * 
 * @author ruoyi
 * @date 2022-03-31
 */
public class Category extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品类别id */
    private Long id;

    /** 商品类别名称 */
    @Excel(name = "商品类别名称")
    private String name;

    /** 商品类别层级 */
    @Excel(name = "商品类别层级")
    private Integer categoryId;

    /** 是否删除   0-未删除    1-已删除 */
    @Excel(name = "是否删除   0-未删除    1-已删除")
    private Long isdelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCategoryId(Integer categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Integer getCategoryId() 
    {
        return categoryId;
    }
    public void setIsdelete(Long isdelete) 
    {
        this.isdelete = isdelete;
    }

    public Long getIsdelete() 
    {
        return isdelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("categoryId", getCategoryId())
            .append("isdelete", getIsdelete())
            .toString();
    }
}
